<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
?>
<form method="post" action="?" id="dform" onsubmit="return check();" enctype="multipart/form-data">
    <input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
    <input type="hidden" name="file" value="<?php echo $file;?>"/>
    <input type="hidden" name="action" value="<?php echo $action;?>"/>
    <input type="hidden" name="forward" value="<?php echo $forward;?>"/>
    <input type="hidden" name="itemid" value="<?php echo $itemid;?>"/>
    <div class="tt"><?php echo $tname;?></div>
    <table cellpadding="2" cellspacing="1" class="tb">
	    <tr>
		    <td class="tl"><span class="f_red">*</span> 视频分类</td>
		    <td><?php echo Post::catTree('post[catid]', $moduleid, '选择分类' ,$catid, 'datatype="n" nullmsg="请选择分类"');?></td>
	    </tr>
        <tr>
            <td class="tl"><span class="f_red">*</span> 品牌/车系/车款</td>
            <td>
	            <?php echo Post::autocombo('post[arbid]','post[arcid]','post[amid]', $arbid, $arcid, $amid,0,0,0); ?>
            </td>
        </tr>
        <tr>
            <td class="tl"><span class="f_red">*</span> 标题</td>
            <td>
                <input type="text" name="post[title]" size="60" value="<?php echo $title;?>" />
            </td>
        </tr>
        <tr>
            <td class="tl"><span class="f_red">*</span> 缩略图</td>
            <td>
	            <?php echo Post::picture($moduleid, 'thumb', 'post[thumb]', $thumb, $MOD['thumb_width'], $MOD['thumb_height']);?>
            </td>
        </tr>
	    <tr>
		    <td class="tl"><span class="f_red">*</span> <?php echo $MOD['name'];?>内容</td>
		    <td><?php echo Post::kindEditor('post[content]', $moduleid, $content, 'datatype="*5-99999" nullmsg="请填写内容" errormsg="内容最少5字"','800px'); ?></td>
	    </tr>
	    <tr>
		    <td class="tl"><span class="f_red">*</span> 标签</td>
		    <td>
			    <input type="text" name="post[tag]" size="30" value="<?php echo $tag;?>" />
		    </td>
	    </tr>
	    <tr>
		    <td class="tl"><span class="f_hid">*</span> <?php echo $MOD['name'];?>状态</td>
		    <td>
			    <input type="radio" name="post[status]" value="3" <?php if ($status == 3) echo 'checked';?> id="status_3"/><label for="status_3"> 通过</label>
			    <input type="radio" name="post[status]" value="2" <?php if ($status == 2) echo 'checked';?> id="status_2"/><label for="status_2"> 待审</label>
			    <input type="radio" name="post[status]" value="1" <?php if ($status == 1) echo 'checked';?> onclick="if(this.checked) Dd('note').style.display='';" id="status_1"/><label for="status_1"> 拒绝</label>
			    <input type="radio" name="post[status]" value="0" <?php if ($status == 0) echo 'checked';?> id="status_0"/><label for="status_0"> 删除</label>
		    </td>
	    </tr>
	    <tr>
		    <td class="tl"><span class="f_hid">*</span> 添加时间</td>
		    <td><?php echo Post::datetimeBox('post[addtime]', $addtime, 'width:140'); ?></td>
	    </tr>
	    <!--
        <tr>
            <td class="tl"><span class="f_hid">*</span> 浏览次数</td>
            <td><input name="post[hits]" type="text" size="10" value="<?php echo $hits;?>"/></td>
        </tr>
        -->
    </table>
    <div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重 置 " class="btn"/></div>
</form>
<script>
	seajs.use(['$', 'vf', 'vf-css', 'easyui','easyui-css'], function($){
	})
</script>
<script type="text/javascript">Menuon(<?php echo $menuid;?>);</script>
<?php include tpl('footer'); ?>